export function convertKey (arr) {
  arr.forEach((item) => {
    if (item.childs) {
      item.children = item.childs
      delete item.childs
      if (item.children.length) {
        convertKey(item.children)
      }
    }
    if (item.points) {
      item.children = item.points
      delete item.points
      if (item.children.length) {
        convertKey(item.children)
      }
    }
  })
}
